package com.java.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.java.common.utils.PageUtils;
import com.java.common.utils.Query;
import com.java.system.dao.RoleResourceDao;
import com.java.system.entity.RoleResource;
import com.java.system.service.RoleResourceService;
import org.springframework.stereotype.Service;
import java.util.Map;

@Service("roleResourceService")
public class RoleResourceServiceImpl extends ServiceImpl<RoleResourceDao, RoleResource> implements RoleResourceService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RoleResource> page = this.page(
                new Query<RoleResource>().getPage(params),
                // 拼接查询条件
                new LambdaQueryWrapper<RoleResource>()
        );

        return new PageUtils(page);
    }

}